package month9day2;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;

public class NewworkEx4 {

	public static void main(String[] args) {
		URL url = null;
		BufferedReader input = null;
		String address = "http://www.javachobo.com/index.html";
		String line = "";
		
		
		try{ 
			url = new URL(address);
			
			input = new BufferedReader(new InputStreamReader(url.openStream()));
			
			while((line= input.readLine()) !=null) {
				System.out.println(line);
			}
			input.close();
		}catch(Exception e){
			e.printStackTrace();
			}
		}

	}


